// 引入mysql
const sql = require('mysql');

// 创建
const connect = sql.createConnection({
    host:'localhost',
    port:'3306',
    user:'root',
    password:'123456',
    database:'abc'
});     
connect.connect(err=>{
    if(err){
        console.log('连接失败')
    }else{
        console.log('连接成功')
    }
})
module.exports = connect;

